Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C3 - fix and update solid #5135

Merged
merged 8 commits into from
Mar 4, 2024
Merged

C3 - fix and update solid #5135

merged 8 commits into from
Mar 4, 2024

Conversation

dario-piotrowicz
Copy link
Member

@dario-piotrowicz dario-piotrowicz commented Mar 1, 2024

What this PR solves / how to test

The C3 solid template is broken now as it seems to rely on an app.config.(js/ts) file instead of vite.config.(js/ts) as it previously did (see their 0.6.0 release notes).

Solid being broken causes our C3 tests to fail as you can see here for example:
  https://github.com/cloudflare/workers-sdk/actions/runs/8110680054/job/22168422094?pr=5129#step:4:76

Author has addressed the following

  • Tests
    • Included
    • Not necessary because: this logic is already tested by the C3 e2es
  • Changeset (Changeset guidelines)
    • Included
    • Not necessary because:
  • Public documentation
    • Cloudflare docs PR(s):
    • Not necessary because: this is fixing a broken behavior

@dario-piotrowicz dario-piotrowicz requested a review from a team as a code owner March 1, 2024 12:44
Copy link

changeset-bot bot commented Mar 1, 2024

🦋 Changeset detected

Latest commit: 439acdc

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
create-cloudflare Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

github-actions bot commented Mar 1, 2024

A wrangler prerelease is available for testing. You can install this latest build in your project with:

npm install --save-dev https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/8115729272/npm-package-wrangler-5135

You can reference the automatically updated head of this PR with:

npm install --save-dev https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/prs/5135/npm-package-wrangler-5135

Or you can use npx with this latest build directly:

npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/8115729272/npm-package-wrangler-5135 dev path/to/script.js
Additional artifacts:
npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/8115729272/npm-package-create-cloudflare-5135 --no-auto-update
npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/8115729272/npm-package-cloudflare-kv-asset-handler-5135
npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/8115729272/npm-package-miniflare-5135
npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/8115729272/npm-package-cloudflare-pages-shared-5135
npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/8115729272/npm-package-cloudflare-vitest-pool-workers-5135

Note that these links will no longer work once the GitHub Actions artifact expires.


wrangler@3.30.1 includes the following runtime dependencies:

Package Constraint Resolved
miniflare workspace:* 3.20240223.0
workerd 1.20240223.1 1.20240223.1
workerd --version 1.20240223.1 2024-02-23

Please ensure constraints are pinned, and miniflare/workerd minor versions match.

Copy link

codecov bot commented Mar 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 70.37%. Comparing base (9d1d11c) to head (439acdc).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #5135      +/-   ##
==========================================
+ Coverage   70.32%   70.37%   +0.04%     
==========================================
  Files         298      298              
  Lines       15542    15542              
  Branches     3999     3999              
==========================================
+ Hits        10930    10937       +7     
+ Misses       4612     4605       -7     

see 6 files with indirect coverage changes

@petebacondarwin petebacondarwin added the c3 Relating to C3 (create-cloudflare) package label Mar 1, 2024
@petebacondarwin
Copy link
Contributor

petebacondarwin commented Mar 1, 2024

There was a failure for Solid on npm in ubuntu. The logs looked like it had this:

ERROR 1 error(s) and 0 warning(s) when compiling Worker.

  ERROR "cloudflarePages" is not declared in this file

    _worker.js/index.js:1:84368:
    1 │ ...hould be provided by compiler");export{�cloudflarePages� as default};
                                           �    ~~~~~~~~~~~~~~~

Copy link
Contributor

@petebacondarwin petebacondarwin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If CI goes green then LGTM

@petebacondarwin
Copy link
Contributor

petebacondarwin commented Mar 1, 2024

I note that there is an upcoming bump of create-solid to 0.5.2? #5098

@dario-piotrowicz dario-piotrowicz requested a review from a team as a code owner March 1, 2024 16:53
@dario-piotrowicz
Copy link
Member Author

@petebacondarwin thanks a bunch 🙂👍 I've cherry-picked the dependabot PR's commits here, maybe they can even solve the issue at hand 🤞 📿 🙏

dario-piotrowicz and others added 4 commits March 1, 2024 16:55
Bumps [create-solid](https://github.com/solidjs-community/solid-cli) from 0.4.10 to 0.5.2.
- [Commits](https://github.com/solidjs-community/solid-cli/commits)

---
updated-dependencies:
- dependency-name: create-solid
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dario-piotrowicz
Copy link
Member Author

@petebacondarwin thanks a bunch 🙂👍 I've cherry-picked the dependabot PR's commits here, maybe they can even solve the issue at hand 🤞 📿 🙏

nope, no luck 🥲

@dario-piotrowicz dario-piotrowicz changed the title C3 - fix solid C3 - fix and update solid Mar 1, 2024
@dario-piotrowicz
Copy link
Member Author

I've actually jumped the gun there 😓

bumping the solid CLI makes the C3 flow different, I feel like it's not worth it to try to solve everything all at once here, so I've reverted back my previous changes

@dario-piotrowicz
Copy link
Member Author

Note: Solid with npm just doesn't seem to work anymore: solidjs/solid-start#1357 , so we'll have to disable the npm C3 e2e here I think

@dario-piotrowicz
Copy link
Member Author

I'm merging this PR since the e2e failures are all regarding hono and not related to these changes (and as you can see also unrelated PRs get the same failures: https://github.com/cloudflare/workers-sdk/actions/runs/8138824477/job/22240512824?pr=5140)

Hopefully that is fine (I just wanted to get this out of the way and address hono separately)

@dario-piotrowicz dario-piotrowicz merged commit 8935526 into main Mar 4, 2024
17 of 22 checks passed
@dario-piotrowicz dario-piotrowicz deleted the c3-fix-solid branch March 4, 2024 10:56
@workers-devprod workers-devprod mentioned this pull request Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c3 Relating to C3 (create-cloudflare) package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants